home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_lag_playambient.cog < prev    next >
Text File  |  1999-11-15  |  2KB  |  81 lines

  1. # Jones 3D Cog Script
  2. #
  3. # lag_playambient.cog
  4. #
  5. # Plays  random sounds at several locations
  6. #
  7. # [DS]
  8. #
  9. # (C) 1998 LucasArts Entertainment Co. All Rights Reserved
  10. # ========================================================================================
  11.  
  12. symbols
  13.     message    pulse
  14.     message    startup
  15.  
  16.     thing        soundPos0        nolink
  17.     thing        soundPos1        nolink
  18.     thing        soundPos2        nolink
  19.     thing        soundPos3        nolink
  20.     thing        soundPos4        nolink
  21.     thing        soundPos5        nolink
  22.     thing        soundPos6        nolink
  23.     thing        soundPos7        nolink
  24.     thing        soundPos8        nolink
  25.     thing        soundPos9        nolink
  26.     thing        soundPos10        nolink
  27.     thing        soundPos11        nolink
  28.     thing        soundPos12        nolink
  29.     thing        soundPos13        nolink
  30.     thing        soundPos14        nolink
  31.     thing        soundPos15        nolink
  32.     thing        soundPos16        nolink
  33.     thing        soundPos17        nolink
  34.     thing        soundPos18        nolink
  35.     thing        soundPos19        nolink
  36.     thing        soundPos20        nolink
  37.     thing        soundPos21        nolink
  38.     thing        soundPos22        nolink
  39.  
  40.     sound        wav0=lag_inside_a01.wav        local
  41.     sound        wav1=lag_inside_a02.wav        local
  42.     sound        wav2=lag_inside_a03.wav        local
  43.     sound        wav3=lag_inside_a04.wav        local
  44.     sound        wav4=lag_inside_a05.wav        local
  45.     sound        wav5=lag_inside_a06.wav        local
  46.     sound        wav6=lag_inside_a07.wav        local
  47.     sound        wav7=lag_inside_a08.wav        local
  48.     sound        wav8=lag_inside_a09.wav        local
  49.     sound        wav9=lag_inside_a10.wav        local
  50.  
  51.     float        minDist=5                local
  52.     float        maxDist=25                local
  53.     float        volume=0.6                local
  54.     int        sndnum                local
  55.     int        numsounds=10            local
  56.     int        cnt                    local
  57.  
  58. end
  59.  
  60. code
  61.  
  62. # ........................................................................................
  63.  
  64. startup:
  65.     sleep(0.01);
  66.     setpulse(2.5);
  67.     return;
  68.  
  69. # ........................................................................................
  70.  
  71. pulse:
  72.     sndnum = rand()*numsounds;
  73. #    printint(sndnum);
  74.     for (cnt = 0; cnt <= 22; cnt = cnt+1) 
  75.     {
  76.     if (soundPos0[cnt] >= 0) PlaySoundThing(wav0[sndnum], soundPos0[cnt], volume, minDist, maxDist, 0);
  77.     }
  78.     return;
  79.  
  80.  
  81. end